<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
<h:body>
	<p:dialog widgetVar="dialogoHistoricoConstrutoraWidget"
		id="dialogoIdHistoricoConstrutora" height="188" width="875" modal="true"
		closable="true" draggable="false" resizable="false" header="Histórico da Construtora">
		<h:form id="formHistoricoConstrutora" prependId="false" >
		#{bundle.historicoRegistro} 
			<b><h:outputText value="#{construtoraMB.construtora.razaoSocial}" /></b><br/><br/>
			<h:panelGrid columns="2">
			
			<h:outputText value=" Data:"  />
			<h:outputText value="#{construtoraMB.dataHistorico}" converter="javax.faces.DateTime"/>
			
			
			<h:outputText value=" Histórico:"  />
				<p:inputTextarea value="#{construtoraMB.historico.historico}" rows="5" cols="120" completeMethod="#{construtoraMB.historico.historico}" queryDelay="450" minQueryLength="3" /> 
			
			<p:commandButton value="Salvar" icon="ui-icon-plus"
							action="#{construtoraMB.salvarHistorico()}"
							update=":messageGrowl :formPrincipalConstrutora:construtoraTable"
							oncomplete="closeDialogIfSucess(xhr, status, args, dialogoHistoricoConstrutoraWidget, 'dialogoVisualizarHistoricoConstrutoraId')" />
							
			<p:commandButton value="Cancelar" icon="ui-icon-cancel" actionListener="#{construtoraMB.historico}"
				onclick="dialogoHistoricoConstrutoraWidget.hide();" type="button" />	
				</h:panelGrid>			
		</h:form>
	</p:dialog>
</h:body>
</html>